# -*- coding: utf-8 -*-
from django.conf.urls import url
from django.urls import path

from . import views, testOperateDb

urlpatterns = [
    url(r'^$', views.hello),
    path('add_book/', views.add_book),
    path('find_book/', views.find_book),
    path('order_book/', views.order_book),
    path('reverse_book/', views.reverse_book),
    path('count_book/', views.count_book),
    path('exists_book/', views.exists_book),
    path('exclude_book/', views.exclude_book),
    path('last_book/', views.last_book),
    path('first_book/', views.first_book),
    path('values_book/', views.values_book),
    path('values_list_book/', views.values_list_book),
    path('filter_book/', views.filter_book),
    path('del_book/', views.del_book),
    path('update_book/', views.update_book),
    path('manyToMany_add_book_one/', testOperateDb.manyToMany_add_book_one),
    path('manyToMany_add_book/', testOperateDb.manyToMany_add_book),
    path('testOperateDb_add_book_One/', testOperateDb.add_book_One),
    path('testOperateDb_add_book/', testOperateDb.add_book),
    path('findBookDetail/', testOperateDb.findBookDetail),
    path('upload/', views.upload),
    path('testupload/', views.testupload),#使用模型处理上传文件
    path('pag<int:pIndex>/', views.pagTest, name='pagTest'),#分页
]
